﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Stadsetjarinn.Models
{
    public class Registration_Data
    {
        [Key]
        public int Registration_ID { get; set; }

        public int? Device_ID { get; set; }  

        public DateTime Registration_Date { get; set; }

        public DateTime Unregister_Date { get; set; }


        [ForeignKey("Device_ID")]
        public virtual Local_Device_Data Local_Device_Data { get; set; }
    }

    //public class RegistrationDBContext : DbContext
    //{
    //    public DbSet<Registration_Data> Registration { get; set; }

    //    public DbSet<Local_Device_Data> Local_Device_Data { get; set; }
    //}
}
